1. unit2:
Unit unit2; interfaceuses windows, classes, nmicmp, sysutils, stdctrls, messages; const wm_my_ping = wm_user + 1024; Type // message record to be transferred. tpingmsg = record MSG: array [0 .. 1023] of char; ID: integer; handled: Boolean; msg2: string; // It is recommended that you use a list or a character array if you need dynamic management, // If the structure is not properly processed during dynamic use, using string may cause memory leakage. // Of course, it does not matter in t
Ucenter communication failure when combined with other applications
Ucenter is a user center, multiple applications can use Ucenter, so that users have a pass, not once to register a different user name
Now the Internet User Center is almost Tencent's user center, because everyone has QQ number
But when you do the application of how to join Ucenter such articles online a lot of
Custom application, after joining the application list, Ucenter detects whether communication with the application
/APP. php under the ucenter directory.
A = Ping indicates that the onping method in the Controller prototype is executed.
Note: If you want to answer the question, you can go to the admin. PHP Portal.
Page 3/5
Okay. Let's take a small step forward. Open the./control/admin/APP. php file and find the onping method. The source code is as follows:
1. 2. 3. 4. 5. 6. 7.
Function
admin directory, open app.php, find ping. Well! Got it! such as: This method is called onping. Let's analyze the key to find out where: if ($status = = ' 1 ') {echo ' document.getelementbyidx_x (\ ' Status_ '. $appid. ' \ '). InnerHTML = " If the value of status is 1 is OK, the reverse is false. Just look at the code above. We notice that the address that the Onping method accesses is actually the applica
How can I do this without Ethernet for Iot!Based on enc28j60, our team independently implemented the Ethernet protocol stack tinyip. Currently, ARP, ICMP, TCP, UDP, and DHCP are supported, and only one DNS is complete.Tinyip has a built-in data buffer. After receiving the data, enc28j60 puts it into the buffer zone, tinyip then splits and restructured the data based on the Ethernet/arp/IP/ICMP/TCP/UDP/DHCP header structure to execute the business logic.Tinyip is completely independently complete
For help with the code of the Ucenter communication process! CSDN great Gods! Admiring! Please give me more advice!
Debugging Ucenter in the/control/admin/app.php encountered such a piece of code
if ($app [' Extra '] [' AppPath '] @include $app [' Extra '] [' AppPath ']. /api/'. $app [' Apifilename '])
{
Code
}
Is this if the include file is the result of execution or the file itself, or simply return a ture or false?
The include comes in a. php file.
Split Line---------------------------------
Ask for help on the ucenter communication process code! Many powerful CSDN! Come here! Please kindly advise! When debugging the ucenter, go to controladminapp. php encountered such a piece of code if ($ app [extra] [apppath] nbsp; amp; nbsp; @ include nbsp; $ app [extra] [apppath] .. api help for ucenter communication process code! Many powerful CSDN! Come here! Please kindly advise!
This code was encountered in/control/admin/app. php during ucenter debugging.
If ($ app ['Extra '] ['apppath'
Find the source of this information from "communication failed:
Open. /control/admin/app. in the PHP file, find the onping method, and you can see that when the $ status is equal to 1, the communication will be successful. In addition, the communication will fail, so that we can set the breakpoint to get the status information, find the problem. The source code is as follows:
Function onping () {$ IP = g
First, a good article http://blog.csdn.net/viqecel/article/details/52485774
Note that UC. PHP interface How to debug, (api/uc.php is the role of the Forum and other applications, such as transmitting the user name and other information, to their own system synchronization login, or sync registered members), see the tutorial here. http://blog.csdn.net/viqecel/ article/details/52492081
Ucenter indicates that the communication failed because the function onp
(165.8kib) lolink encap:localloopbackinetaddr : 127.0.0.1mask:255.0.0.0inet6addr:::1/ 128scope:hostuploopbackrunning mtu:16436metric:1rxpackets:184 Errors:0dropped:0overruns:0frame:0tx packets:184errors:0dropped:0overruns:0carrier:0 collisions:0txqueuelen:0rx bytes:25686 (25.0kib) TXbytes:25686 (25.0kib)To repeat the steps on another host:send the public key to node2.lw.comview: where is the installed heartbeat file?[Email protected] ~]# RPM-QL Heartbeat |lesscopy three important filesCp/usr/sh
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.